﻿using Application.Dto;
using Domain.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.IAppSrevices
{
    public interface ICPCService
    {
        /// <summary>
        /// 公共属性数据分页显示
        /// </summary>
        /// <param name="cPC"></param>
        /// <returns></returns>
        Task<List<CPC>> CPCselectAsync(int pageIndex, int pageSize);
        int SelectCount();
        /// <summary>
        /// 公共属性设置添加
        /// </summary>
        /// <param name="cPCAdd"></param>
        /// <returns></returns>
        Task<int> CPCAddAsync(CPCAdd cPCAdd);
        /// <summary>
        /// 公共属性设置删除
        /// </summary>
        /// <param name="cPC"></param>
        /// <returns></returns>
        Task<int> CPCDeleteAsync(CPCDelete cPCDelete);
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        Task<List<CPC>> CPCselectaAsync(int pageIndex, int pageSize, string name);

        int SelectCounta(string name);

        Task<int> CPCxianz( CPCAdd cPCAdd);

        /// <summary>
        /// 按属性种类查询全部属性数据
        /// </summary>
        /// <param name="kind"></param>
        /// <returns></returns>
        Task<List<CPC>> CPCFillAsync(string kind);
    }
}
